import service from '@/utils/request'

// @Tags DeviceType
// @Summary 创建DeviceType
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DeviceType true "创建DeviceType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /deviceType/createDeviceType [post]
export const createDeviceType = (data) => {
  return service({
    url: '/deviceType/createDeviceType',
    method: 'post',
    data
  })
}

// @Tags DeviceType
// @Summary 删除DeviceType
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DeviceType true "删除DeviceType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /deviceType/deleteDeviceType [delete]
export const deleteDeviceType = (data) => {
  return service({
    url: '/deviceType/deleteDeviceType',
    method: 'delete',
    data
  })
}

// @Tags DeviceType
// @Summary 删除DeviceType
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除DeviceType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /deviceType/deleteDeviceType [delete]
export const deleteDeviceTypeByIds = (data) => {
  return service({
    url: '/deviceType/deleteDeviceTypeByIds',
    method: 'delete',
    data
  })
}

// @Tags DeviceType
// @Summary 更新DeviceType
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.DeviceType true "更新DeviceType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /deviceType/updateDeviceType [put]
export const updateDeviceType = (data) => {
  return service({
    url: '/deviceType/updateDeviceType',
    method: 'put',
    data
  })
}

// @Tags DeviceType
// @Summary 用id查询DeviceType
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.DeviceType true "用id查询DeviceType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /deviceType/findDeviceType [get]
export const findDeviceType = (params) => {
  return service({
    url: '/deviceType/findDeviceType',
    method: 'get',
    params
  })
}

// @Tags DeviceType
// @Summary 分页获取DeviceType列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取DeviceType列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /deviceType/getDeviceTypeList [get]
export const getDeviceTypeList = (params) => {
  return service({
    url: '/deviceType/getDeviceTypeList',
    method: 'get',
    params
  })
}
